﻿using System;
using System.Collections.Generic;

namespace Domain
{
//    create table Purchase
//(
//    ID int not null primary key,
//    CustomerID int null references Customer (ID),
//	Date datetime not null,
//	Description varchar(30) not null,
//	Price decimal not null
//)
    public class Purchase
    {
        public int ID { get; set; }
        public DateTime Date { get; set; }
        public string Description { get; set; }
        public decimal Price { get; set; }
        public int? CustomerID { get; set; }
        public virtual Customer Customer { get; set; }
        public virtual ICollection<PurchaseItem> PurchaseItems { get; set; }
    }
}